Add style sheets tomtom_itn "TomTom Itenaries" and tomtom_asc "TomTom POI ascii files".
authoroliskoli <oliskoli>
Tue, 17 Apr 2007 20:17:22 +0000 (20:17 +0000)
committeroliskoli <oliskoli>
Tue, 17 Apr 2007 20:17:22 +0000 (20:17 +0000)
Makefile.in
style/tomtom_asc.style [new file with mode: 0644]
style/tomtom_itn.style [new file with mode: 0644]
vecs.c

index 2a39a43deefb2d12f39ffe145fb269eda959cf60..2692a335adaf58fc5b19a88639e4cdd8e7ec8f98 100644 (file)
@@ -853,5 +853,5 @@ zlib/trees.o: zlib/trees.c zlib/deflate.h zlib/zutil.h zlib/zlib.h \
   zlib/zconf.h zlib/trees.h
 zlib/uncompr.o: zlib/uncompr.c zlib/zlib.h zlib/zconf.h
 zlib/zutil.o: zlib/zutil.c zlib/zutil.h zlib/zlib.h zlib/zconf.h
-internal_styles.c: mkstyle.sh style/arc.style style/cambridge.style style/csv.style style/cup.style style/custom.style style/dna.style style/fugawi.style style/garmin301.style style/garmin_poi.style style/geonet.style style/gpsdrive.style style/gpsdrivetrack.style style/gpsman.style style/kompass_tk.style style/kompass_wp.style style/ktf2.style style/kwf2.style style/mapconverter.style style/mxf.style style/nima.style style/openoffice.style style/s_and_t.style style/saplus.style style/sportsim.style style/tabsep.style style/xmap2006.style style/xmap.style style/xmapwpt.style
+internal_styles.c: mkstyle.sh style/arc.style style/cambridge.style style/csv.style style/cup.style style/custom.style style/dna.style style/fugawi.style style/garmin301.style style/garmin_poi.style style/geonet.style style/gpsdrive.style style/gpsdrivetrack.style style/gpsman.style style/kompass_tk.style style/kompass_wp.style style/ktf2.style style/kwf2.style style/mapconverter.style style/mxf.style style/nima.style style/openoffice.style style/s_and_t.style style/saplus.style style/sportsim.style style/tabsep.style style/xmap2006.style style/xmap.style style/xmapwpt.style style/tomtom_itn.style style/tomtom_asc.style
        ./mkstyle.sh > internal_styles.c || (rm -f internal_styles.c ; exit 1)
diff --git a/style/tomtom_asc.style b/style/tomtom_asc.style
new file mode 100644 (file)
index 0000000..022936a
--- /dev/null
@@ -0,0 +1,27 @@
+# gpsbabel XCSV style file
+#
+# Format: TomTom Navigator Places of Interest
+# Author: Olaf Klein
+#   Date: 04/17/2007
+#
+DESCRIPTION            TomTom POI file (.asc)
+EXTENSION              asc
+DATATYPE               WAYPOINT
+#
+# FILE LAYOUT DEFINITIIONS:
+#
+FIELD_DELIMITER                COMMA
+RECORD_DELIMITER       CRNEWLINE
+BADCHARS               ,"
+ENCODING               MS-ANSI
+#
+PROLOGUE        TomTom Navigator Places of Interest
+PROLOGUE        GPSBabel-__VERSION__ ASCII Export
+PROLOGUE         Points
+PROLOGUE        Created at: __DATE_AND_TIME__
+# #
+# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:
+#
+IFIELD LON_DECIMAL, "", "%.6f"
+IFIELD LAT_DECIMAL, "", "%.6f"
+IFIELD SHORTNAME, "", ""%s""
diff --git a/style/tomtom_itn.style b/style/tomtom_itn.style
new file mode 100644 (file)
index 0000000..712c229
--- /dev/null
@@ -0,0 +1,23 @@
+# gpsbabel XCSV style file
+#
+# Format: TomTom Navigator Itenaries (Routes)
+# Author: Olaf Klein
+#   Date: 04/17/2007
+#
+DESCRIPTION            TomTom Itenaries (.itn)
+EXTENSION              itn
+DATATYPE               ROUTE
+#
+# FILE LAYOUT DEFINITIIONS:
+#
+FIELD_DELIMITER                PIPE
+RECORD_DELIMITER       CRNEWLINE
+BADCHARS               ,|
+ENCODING               MS-ANSI
+#
+# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:
+#
+IFIELD LAT_10E5, "", "%.f"
+IFIELD LON_10E5, "", "%.f"
+IFIELD SHORTNAME, "", "%s"
+IFIELD CONSTANT, "0", "%s"
diff --git a/vecs.c b/vecs.c
index 532c215f1e09c7b6acb9cfe6d0c61cb82281de9a..dbdd99947afd76bff99339c3341581f2d3adca8e 100644 (file)
--- a/vecs.c
+++ b/vecs.c
@@ -458,7 +458,7 @@ vecs_t vec_list[] = {
        {
                &tomtom_vecs,
                "tomtom",
-               "TomTom POI file",
+               "TomTom POI file (.ov2)",
                "ov2"
        },
        {